package com.example.taketaxi;

import pessoa.Pessoa;
import taxista.activities.FragmentListaChamadosTaxista;
import taxista.activities.FragmentListaTaxistasAdm;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.view.Menu;

public class PrincipalTaxista extends FragmentActivity {
	private int CONTEINER_FRAGMENT = R.id.conteiner_fragment_principal_taxista;
	public Pessoa pessoa;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_principal_taxista);
		
		Intent intent = getIntent();
		pessoa = (Pessoa)intent.getSerializableExtra("pessoa");
		
		//adicionando o fragment do mes e ano referencia
		FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
		FragmentListaChamadosTaxista fragmentClientes = new FragmentListaChamadosTaxista();
		ft.replace(CONTEINER_FRAGMENT, fragmentClientes);
		ft.commit();
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.principal_taxista, menu);
		return true;
	}

}
